using System.Reflection;
using UnityEngine;

namespace Fusion.Hotfix.Mono.LifeCycle
{
    public class DLLMonoLifeCycle : MonoBehaviour
    {
        private string monoName;
        public string MonoName { get => monoName; set => monoName = value; }

        MethodInfo methodInfo;
        public MethodInfo MethodInfo { get => methodInfo; }

        DLLMonoBase mono;
        public DLLMonoBase Mono { get => mono; }
        public void Register(DLLMonoBase mono, MethodInfo method)
        {
            if (this.mono == null)
            {
                this.mono = mono;
                methodInfo = method;
            }
        }
    }
}


